#!/usr/bin/env python
# -*- coding:utf-8 -*-
import tkinter as tk
from tkinter import ttk
import requests

root = tk.Tk()
root.title("SoapToolbox")
root.geometry("400x120")
window = ttk.Frame(root)
window.pack(ipadx=10,ipady=10)

def conversion():
    a = Waiting_converted_url.get()
    querystring = {"url": a}
    requests_url = "http://suo.im/api.php"
    response = requests.request("GET", requests_url, params=querystring)
    converted_url.insert(tk.INSERT,response.text)

prompt_message1 = ttk.Label(window,text="Enter the link to convert below:")
prompt_message1.pack()
Waiting_converted_url = ttk.Entry(window,width=50,textvariable=tk.StringVar())
Waiting_converted_url.pack()
confirm_button = ttk.Button(window,text="Conversion Now!",command=conversion)
confirm_button.pack()
converted_url = ttk.Entry(window,width=50)
converted_url.pack()

root.mainloop()